/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package picstore.web.conexao;

import org.hibernate.Session;
import picstore.util.HibernateUtil;

/**
 *
 * @author erica
 */
public class ConectaHibernate {
    
    public static void main(String[] args){
    Session sessao = null;
    
    try {
    sessao = HibernateUtil.getSessionFactory().openSession();
    System.out.println("funciona !!!!!!!!!!!!!");
    }
    finally{
    sessao.close();
    }
    
    
    }
    
}
